package snsdbook.engine.message;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import snsdbook.engine.FileManager;
import util.Util;

public class ProbeRequest implements MessageInterface {

  private static final long serialVersionUID = 4596153985638055569L;

  @Override
  public String ProcessAsServer(ObjectInputStream is, ObjectOutputStream os) {
    new ProbeReply().ProcessAsServer(is, os);
    return "";
  }

  @Override
  public String ProcessAsClient(ObjectInputStream is, ObjectOutputStream os,
      FileManager manager) {
    Util.Send(os, this);
    return Util.Receive(is).ProcessAsClient(is, os, manager);
  }
  
  public String toString() { return "PROBE REQUEST"; }

}
